﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="ProcessList.aspx.cs" Inherits="BySoft.Web.Site.MasteData.ProcessList" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
	<script language="javascript" type="text/javascript">
        
    </script>
	</asp:Content>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    
    <h1 class="tit">基础资料 >> 工序资料</h1>
    <br />
    <%--查询条件--%>
    <div class="searchTable">
        <table  cellpadding="0" cellspacing="0" border="1">
		    <tr>
                <th class="left2">工序名称：</th>
                <td class="right2">
                    <asp:TextBox ID="txtProcessName" runat="server"></asp:TextBox>
                </td>
                <th class="left2">&nbsp; </th>
                <td class="right2">&nbsp; </td>
            </tr>
        </table>
        <br />
        <div class="btnStylef">
            <label class="btnStyleb png_bg">
                <asp:Button Text="查询" runat="server" ID="btnQuery" class="png_bg" OnClick="btnQuery_Click" />
            </label>
            <label class="btnStylec png_bg">
                <input type="button" runat="server" id="btnAdd" value="新增" onclick="window.location = 'ProcessAdd.aspx'" class="png_bg" /></label>
        </div>
    </div>
    <%--列表--%>
    <div class="tableStyle" runat="server">
        <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
            AutoGenerateColumns="false" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound"
            OnRowCommand="grdResult_RowCommand" BorderWidth="0px" GridLines="None">
            <Columns>
				        <asp:TemplateField>
                            <HeaderTemplate>
                                编号
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblProcessID" runat="server" Text='<%#Eval("ProcessID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                工序名称
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblProcessName" runat="server" Text='<%#Eval("ProcessName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>                
                        <asp:TemplateField>
                            <HeaderTemplate>
                                查看
                            </HeaderTemplate>
                            <HeaderStyle Width="35px" />
                            <ItemTemplate>
                                <asp:ImageButton CommandName="viewdata" CommandArgument='<%#Eval("ProcessID") %>'
                                    ImageUrl="../App_Themes/Common_CSS/images/GridDetail.gif" runat="server" ID="ibtnView" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderStyle Width="35px" />
                            <HeaderTemplate>
                                编辑
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton CommandName="edi" CommandArgument='<%#Eval("ProcessID") %>' ImageUrl="../App_Themes/Common_CSS/images/GridEdit.gif"
                                    runat="server" ID="ibtnEdi" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderStyle Width="35px" />
                            <HeaderTemplate>
                                删除
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ImageUrl="../App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                    ID="ibtnDel" />
                                <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("ProcessID") %>'
                                    CommandName="del" />
                            </ItemTemplate>
                        </asp:TemplateField>
            </Columns>
        </asp:SGridView>
        <div style="padding-top: 5px" align="right">
            <cc1:PagingControl ID="pcData" runat="server" OnPageIndexClick="pcData_PageIndexClick" />
        </div>
    </div>
</asp:Content>



